home *** CD-ROM | disk | FTP | other *** search
- // %filename% -- window
- // Created %date% %time% by AppMaker
-
- // For most applications, your window will have custom view classes.
- // This module provides a convenient place to put these classes.
- // If you specify a custom classname for any view item, AppMaker will
- // generate some skeleton code for that custom class. It generates
- // a declaration of that class with a fields method; it generates
- // the body of the fields method; and AppMaker generates code for
- // dead strip suppression. For some view items, AppMaker generates
- // other methods it knows you will need; for instance, for a
- // TTextListView, AppMaker generates a GetItemText method.
-
- #include "U%windname%.h"
-
- #ifndef __UVIEWSERVER__
- #include <UViewServer.h>
- #endif
-
- #include "ResourceDefs.h"
-
- %for each item gen classMethods%
- #pragma segment AOpen
- //----------
- TWindow *New%windname% (TDocument *itsDocument)
- {
- TWindow *theWindow;
-
- theWindow = gViewServer->NewTemplateWindow (k%windname%ID, itsDocument);
- FailNIL (theWindow);
-
- %for each item gen gDeadStripSuppression%
-
- return (theWindow);
- } /* New%windname% */
-
- /* U%windname% */
-